#pragma once

#include <fstream>
#include <string>
#include <vector>
#include <iostream>

using namespace std;


class mcsv_file
{
	friend wostream& operator<<(wostream&, const mcsv_file&); 
public:
	mcsv_file(void);
	~mcsv_file(void);

	void read(const wchar_t* filename);


	wstring get_at(int hang,int lie);

private:
	void parse(const wstring& text);
	void parse_one_line(const wstring& oneline);
	typedef vector<wstring> one_line_words;
	typedef vector<one_line_words>  lines;

	lines thelines;


};
